      SUBROUTINE SETUP
      RETURN
      END
C   HS10
      SUBROUTINE EF(X,FX)
      INCLUDE 'FUCO.INC'
      DOUBLE PRECISION X(NX),FX
      ICF=ICF+1
      FX=X(1)-X(2)
      RETURN
      END
      SUBROUTINE EGRADF(X,GRADF)
      INCLUDE 'FUCO.INC'
      DOUBLE PRECISION X(NX),GRADF(NX)
      ICGF=ICGF+1
      GRADF(1)=1.D0
      GRADF(2)=-1.D0
      RETURN
      END
      SUBROUTINE EH(I,X,HXI)
      INCLUDE 'FUCO.INC'
      DOUBLE PRECISION X(NX),HXI
      INTEGER I
      CRES(I)=CRES(I)+1
      RETURN
      END
      SUBROUTINE EGRADH(I,X,GRADHI)
      INCLUDE 'FUCO.INC'
      DOUBLE PRECISION X(NX),GRADHI(NX)
      INTEGER I
      CGRES(I)=CGRES(I)+1
      RETURN
      END
      SUBROUTINE EG(I,X,GXI)
      INCLUDE 'FUCO.INC'
      DOUBLE PRECISION X(NX),GXI
      INTEGER I
      IF ( GUNIT(1,I+NH) .EQ. -1 )CRES(I+NH)=CRES(I+NH)+1      
      GXI=-3.D0*X(1)**2+2.D0*X(1)*X(2) -X(2)**2 +1.D0
      RETURN
      END
      SUBROUTINE EGRADG(I,X,GRADGI)
      INCLUDE 'FUCO.INC'
      DOUBLE PRECISION X(NX) ,GRADGI(NX)
      INTEGER I
      IF ( GUNIT(1,I+NH) .EQ. 1 )RETURN
      CGRES(I+NH)=CGRES(I+NH)+1
      GRADGI(1)=-6.D0*X(1)+2.D0*X(2)
      GRADGI(2)= 2.D0*X(1)-2.D0*X(2)
      RETURN
      END
      BLOCK DATA
      INCLUDE 'BLOCO.INC'
      INTEGER I,J
      DATA NAME/'HS10'/
      DATA X(1),X(2)/-10.D0,1.D1/
      DATA N/ 2/ , NH/0/ , NG/1 /
      DATA DEL0/1.00D0/ ,TAU0/1.00D1/ ,TAU/.1D0/
      DATA ((GUNIT(I,J),I=1,3),J=0,1)/-1,0,0,-1,0,0/
      END
